# -*- coding: utf-8 -*-
# @Time    : 2024/2/1 21:16
# @Author  : micah
# @File    : 9.获取多个节点.py
# @Software: PyCharm


import time
from selenium import webdriver
from selenium.webdriver.common.by import By


browser = webdriver.Chrome()
browser.get('https://movie.douban.com/top250')
time.sleep(1)
res = browser.find_elements(By.XPATH, "//ol[@class='grid_view']/li")
print(res)  # 列表

time.sleep(2)
browser.close()
